import request from '@/utils/request'

// 短信
export function sendSms(data) {
  return request({
    url: '/pub/sms',
    method: 'post',
    data:data
  })
}

// 数据字典：根据Key获取项
export function getSysDic(params) {
  return request({
    url: '/admin/sys/dic/item',
    method: 'get',
    params:params
  })
}

// 七牛Key
export function getQiniu() {
  return request({
    url: '/pub/qiniu',
    method: 'get',
  })
}

// 获取公共提示数据
export function remindData() {
  return request({
    url: '/pub/setting',
    method: 'get',
  })
}

// 账户：验证手机号是否重复
export function existMobile(params) {
  return request({
    url: '/pub/existMobile',
    method: 'get',
    params: params
  })
}
//修改手机号
export function updateMobile(data) {
  return request({
    url: '/admin/account/updateMobile',
    method: 'post',
    data
  })
}
//修改密码
export function updatePassword(data) {
  return request({
    url: '/admin/account/updatePwd',
    method: 'post',
    data
  })
}

// 续费二维码
export function payRenew(params) {
  return request({
    url: '/pub/pay/renew',
    method: 'get',
    params:params
  })
}

